package service;

import model.DTO.DishEditDTO;
import model.DTO.DishPageDTO;
import model.VO.DishAndSetmealVO;
import model.VO.DishPageVO;
import model.VO.DishVO;
import model.entity.Dish;

import java.util.List;

public interface DishService {
    //修改菜品
    void edit(DishEditDTO d);
    //批量删除菜品
    void del(String ids);
    //新增菜品
    void add(int categoryId,String image,String name,double price,String description,int id,int status);
    //根据id查询菜品
    DishVO find(int id);
    //根据categoryId查询菜品
    List<Dish> getCateDishes(int categoryId);
    //分页查询
    DishPageVO pageQuery(DishPageDTO dishPageDTO);
    //修改菜品售卖状态
    void  statusEdit(int id);

    //搜索菜品及套餐
    DishAndSetmealVO findDishAndSetmeal(String name);
}
